package top.songxs.gmall.feign.order;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import top.songxs.gmall.common.result.Result;
import top.songxs.gmall.feign.order.fallback.OrderFeignClientFallback;
import top.songxs.gmall.order.entity.OrderInfo;
import top.songxs.gmall.order.vo.OrderConfirmVo;

@FeignClient(value = "service-order",fallback = OrderFeignClientFallback.class)
public interface OrderFeignClient {

    @GetMapping(value = "api/inner/order/orderConfirmData")
    public Result<OrderConfirmVo> orderConfirmData() ;


    @GetMapping(value = "api/inner/order/findById/{orderId}")
    public Result<OrderInfo> findById(@PathVariable(value = "orderId") Long orderId) ;
}
